package ambika.collections;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;

public class Lists {
 
	
	
	public static void main(String[] args){
		 List<Integer> number = new ArrayList<Integer>();
		 number.add(5);
		 number.remove(0);
		 number.add(1,2);
		 number.add(4);
		 System.out.println(number.size());
	
		 System.out.println(number);
		 
		 System.out.println(number.get(2));
		
	}
	
}
